POV-Ray : Newsgroups : povray.programming : How to Build a GUI Extension to POV-Ray for Windows. : Re: How to Build a GUI Extension to POV-Ray for Windows. Server Time
28 Jul 2024 08:29:19 EDT (-0400)
  Re: How to Build a GUI Extension to POV-Ray for Windows.  
From: Andrew Wilcox
Date: 2 Aug 2002 12:11:33
Message: <3d4aaf35@news.povray.org>
Ok, I got the guidemo.c compiled and installed into POV-Ray, pretty cool.

I used the following compile arguments with bcc32.exe

bcc32 -WD -O2 -Vx -Ve -X- -a8 -b- -k- -vi -tWD -tWM- -q -lD"" -laa -lTpd -lx
 -lGn -lGi -eguiext.pge *.c

Which I got from this web page:
     http://www.textpad.com/support/tips/borlandtip.html#dll

Then I modified the PVENGINE.INI file and added followling line.  The
guiext.pge is just the temporary name I working under, I'll change it as per
the license agreement when I get to a release point.

ExtDll16=u:\source\com\unpuzzled\d3\guiext\guiext.pge

under the [GUIExtensions] header...

So the file ended up looking like this.

[GUIExtensions]
UseExtensions=1
ExtDll15=D:\Program Files\Moray For Windows\MorayCtrl.DLL
ExtDll16=u:\source\com\unpuzzled\d3\guiext\guiext.pge

Started up POV and to my amazement there it was...

Now I just have to figure out how to implement what I really want it to
do...

--
#macro Q(A,E,W)box{-A/2,A/2pigment{rgb 9*W}translate E*A+W/1000}#end#macro
M(D,E)#local A=1/pow(3,D);#if(D<3)#local C=D+1;union{M(C,1)M(C,x+y)M(C,x+z)
M(C,y+z)M(C,x+y-z)M(C,x+z-y)M(C,y+z-x)M(C,x-y)M(C,z-x)M(C,y-z)M(C,y-x)M(C,
x-z)M(C,z-y)M(C,x-y-z)M(C,y-x-z)M(C,z-x-y)translate A*E}#else Q(A,E,x)Q(A,E
,y)Q(A,E,z)#end#end union{M(0,0)rotate<45,145,0>translate z*2}//Andrew


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.